package com.lpx.blog.task;

import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.annotation.XxlJob;
import org.springframework.stereotype.Component;

import lombok.extern.slf4j.Slf4j;

@Slf4j
@Component
public class WeeklyFridayJobHandler {

    @XxlJob("weeklyFridayJob")
    public ReturnT<String> execute(String param) {
		log.info("每周五中午12点执行任务，参数：{}", param);
        // 在这里编写你的任务逻辑
        System.out.println("每周五中午12点任务执行中...");
        return ReturnT.SUCCESS;
    }
}